<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<input id="id" name="id" value="${version.id}" hidden/>
<input id="projId" name="projId" value="${projId}" hidden/>
<div class="form-group">
    <label class="col-sm-2 control-label">版本号：</label>
    <div class="col-sm-4">
        <input id="version" name="version" type="text" class="form-control" required value="${version.version}">
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">发布时间：</label>
    <div class="col-sm-9">
        <input id="publishTime" name="publishTime"
               type="text"
               class="form-control layer-date laydate-icon"
               onclick="laydate({istime: true, format: 'YYYY-MM-DD'})"
               required value="${version.publishTime}">
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">版本说明：</label>
    <div class="input-group m-b col-sm-9">
        <textarea id="contents"  cols="20" rows="2" class="ckeditor">${version.content}</textarea>
        <input name="contents" type="hidden" id="contentCopy"/>
    </div>
</div>
<script type="text/javascript">
    CKEDITOR.replace( 'contents',
            {
                toolbar :
                        [
                            //加粗     斜体，     下划线      穿过线      下标字        上标字
                            ['Bold','Italic','Underline','Strike','Subscript','Superscript'],
                            // 数字列表          实体列表            减小缩进    增大缩进
                            ['NumberedList','BulletedList','-','Outdent','Indent'],
                            //左对 齐             居中对齐          右对齐          两端对齐
                            ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
                            //超链接  取消超链接 锚点
                            ['Link','Unlink'],
//                            ['Link','Unlink','Anchor'],
//                            //图片    flash    表格       水平线            表情       特殊字符        分页符
//                            ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
                            ['Table','HorizontalRule','Smiley','SpecialChar'],
                            '/',
                            // 样式       格式      字体    字体大小
                            ['Styles','Format','Font','FontSize'],
                            //文本颜色     背景颜色
                            ['TextColor','BGColor'],
                            //全屏           显示区块
                            ['Maximize', 'ShowBlocks','-']
                        ]
            }
    );
</script>